package com.nvshen.zhangmeiying.model;

import java.io.Serializable;

/**
 * Created by wxc on 14-8-4.
 */
public class Article implements Serializable
{
    private int id;
    private User user;
    private String image;
    private String video;
    private String audio;

    private int video_length;
    private int created_at;
    private String description;

    private int voted;
    private int vote;

    private int play_times;
    private int comment_number;
    private int follow_status;
    private String province;
    private String city;
    public int is_private;

    public String real_image;

    public int getId()
    {
        return id;
    }

    public void setId(int id)
    {
        this.id = id;
    }

    public User getUser()
    {
        return user;
    }

    public void setUser(User user)
    {
        this.user = user;
    }

    public String getImage()
    {
        if(real_image == null)
        {
            return image;
        }

        if(real_image.equals(image))
        {
            return image;
        }

        if (is_private == 1)
        {
            return real_image;
        }
        else
        {
            return image;
        }
    }

    public void setImage(String image)
    {
        this.image = image;
    }

    public String getVideo()
    {
        return video;
    }

    public void setVideo(String video)
    {
        this.video = video;
    }

    public String getAudio()
    {
        return audio;
    }

    public void setAudio(String audio)
    {
        this.audio = audio;
    }

    public int getVideo_length()
    {
        return video_length;
    }

    public void setVideo_length(int video_length)
    {
        this.video_length = video_length;
    }

    public int getCreated_at()
    {
        return created_at;
    }

    public void setCreated_at(int created_at)
    {
        this.created_at = created_at;
    }

    public String getDescription()
    {
        return description;
    }

    public void setDescription(String description)
    {
        this.description = description;
    }

    public int getVoted()
    {
        return voted;
    }

    public void setVoted(int voted)
    {
        this.voted = voted;
    }

    public int getVote()
    {
        return vote;
    }

    public void setVote(int vote)
    {
        this.vote = vote;
    }

    public int getPlay_times()
    {
        return play_times;
    }

    public void setPlay_times(int play_times)
    {
        this.play_times = play_times;
    }

    public int getComment_number()
    {
        return comment_number;
    }

    public void setComment_number(int comment_number)
    {
        this.comment_number = comment_number;
    }

    public int getFollow_status()
    {
        return follow_status;
    }

    public void setFollow_status(int follow_status)
    {
        this.follow_status = follow_status;
    }

    public String getProvince()
    {
        return province;
    }

    public void setProvince(String province)
    {
        this.province = province;
    }

    public String getCity()
    {
        return city;
    }

    public void setCity(String city)
    {
        this.city = city;
    }


    public String getShareTextForWeixin()
    {
        return "发现了个长腿，美臀集中营，快戳进来看看吧。";
    }

    public String getURLForWeixin()
    {
        return "http://app.mi.com/detail/71672";
    }
}
